package luz.javaproxy.plugin;

import java.util.Properties;

import javax.swing.JPanel;

import org.apache.http.HttpRequest;
import org.apache.http.HttpResponse;

/**
 * Plugins MUST implement a contructor that has a java.util.Properties parameter.
 * 
 * If you want to implement a proxy plugin you have to add the address of the proxy
 * as a String Parameter to the HttpRequest.
 * 		HttpParams params  = new BasicHttpParams();
 *		params.setParameter("proxy", address);
 *		request.setParams(params);
 * 
 * @param request
 */
public interface PluginInterface {
	public void onRequest(final HttpRequest request);
	public void onResponse(final HttpRequest request, final HttpResponse response);
	public JPanel getPluginPanel();
	public Properties getSettings();
	public void setSettings(Properties config);
	
	public static final String PROXY="proxy";
}

